<?php

namespace app\admin\validate;

use think\Validate;

class Chat extends Validate
{
    protected $rule = [
        ['name',         'require',   '名称不能为空'],
        ['image',        'require',   '请先上传图片'],
        ['title',        'require',   '提醒词不能为空'],
        ['content',      'require|max:64',   '提醒内容不能为空|不能超过64个字'],
    ];

    protected $scene = [
        'addSticker'     => ['name', 'image'],
        'addTipWord'     => ['title', 'content'],
    ];
}
